package com.sk.bilibili.event;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class MemberEvent {

    // 0 切换事件
    private Integer type;
    // 要切换的页面
    private Integer index;

    private MemberEvent(Integer type) {
        this.type = type;
    }

    public static MemberEvent switchEvent(Integer index){
        return new MemberEvent(0).setIndex(index);
    }

}